using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class hostage : MonoBehaviour
{
    private Animator anim;
    private Rigidbody2D rd;

    public bool is_release = false;

    private void Start()
    {
        anim = GetComponent<Animator>();
        rd = GetComponent<Rigidbody2D>();
    }

    public void release()
    {
        anim.SetTrigger("release");
        is_release = true;
    }

    public void Move()
    {
        rd.velocity = new Vector2(-2, 0);
    }

    public void Destroy()
    {
        GameObject.Destroy(gameObject);
    }

}
